package br.com.management.mentor.model.beans;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity
public class Product extends BaseEntity {

	private static final long serialVersionUID = 9124310552000257280L;

	private String barCode;

	@Column(nullable = false)
	private String description;

	@Column(nullable = false)
	private Unity unity;

	@Column(nullable = false)
	private double salePrice;
	
	@Column(nullable = false)
	private double purchasePrice;
	
	@Column(nullable = false)
	private double quantityMinStock;
	
	@Column(nullable = false)
	private double quantityMaxStock;

	private Category category;
	
	private Mark mark;
	
	private Manufacturer manufacturer;
	
	private Provider provider;
	
	private String observation;

	public Product() {
	}

	
	public Product(String barCode, String description, Unity unity,
			double salePrice, double purchasePrice, double quantityMinStock,
			double quantityMaxStock, Category category, Mark mark,
			Manufacturer manufacturer, Provider provider, String observation) {
		super();
		this.barCode = barCode;
		this.description = description;
		this.unity = unity;
		this.salePrice = salePrice;
		this.purchasePrice = purchasePrice;
		this.quantityMinStock = quantityMinStock;
		this.quantityMaxStock = quantityMaxStock;
		this.category = category;
		this.mark = mark;
		this.manufacturer = manufacturer;
		this.provider = provider;
		this.observation = observation;
	}


	public String getBarCode() {
		return barCode;
	}

	public void setBarCode(String barCode) {
		this.barCode = barCode;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Unity getUnity() {
		return unity;
	}

	public void setUnity(Unity unity) {
		this.unity = unity;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public double getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(double salePrice) {
		this.salePrice = salePrice;
	}

	public double getPurchasePrice() {
		return purchasePrice;
	}

	public void setPurchasePrice(double purchasePrice) {
		this.purchasePrice = purchasePrice;
	}

	public double getQuantityMinStock() {
		return quantityMinStock;
	}

	public void setQuantityMinStock(double quantityMinStock) {
		this.quantityMinStock = quantityMinStock;
	}

	public double getQuantityMaxStock() {
		return quantityMaxStock;
	}

	public void setQuantityMaxStock(double quantityMaxStock) {
		this.quantityMaxStock = quantityMaxStock;
	}

	public Mark getMark() {
		return mark;
	}

	public void setMark(Mark mark) {
		this.mark = mark;
	}

	public Manufacturer getManufacturer() {
		return manufacturer;
	}

	public void setManufacturer(Manufacturer manufacturer) {
		this.manufacturer = manufacturer;
	}

	public Provider getProvider() {
		return provider;
	}

	public void setProvider(Provider provider) {
		this.provider = provider;
	}

	public String getObservation() {
		return observation;
	}

	public void setObservation(String observation) {
		this.observation = observation;
	}
}
